﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YourMoney
{
    /// <summary>
    /// Сущность(доход/расход)
    /// </summary>
   public  class Essence
    {
        
        private int id;
        private int typeId;
        private int sum;
        private int date;
        private string comment;
        /// <summary>
        /// Id сущности
        /// </summary>
        public int ID
        {
            get { return id; }
            set { id = value; }
        }
        /// <summary>
        /// Id типа сущности
        /// </summary>
        public int TypeID
        {
            get { return typeId; }
            set { typeId = value; }
        }
        /// <summary>
        /// Сумма
        /// </summary>
        public int Size
        {
            get { return sum; }
            set { sum = value; }
        }
        /// <summary>
        /// Дата 
        /// </summary>
        public int Date
        {
            get{return date;}
            set{date = value;}
        }
        /// <summary>
        /// Комментарий
        /// </summary>
        public string Comment
        {
            get { return comment; }
            set { comment = value; }
        }
        /// <summary>
        /// Создание сущности
        /// </summary>
        /// <param name="id">Id сущности</param>
        /// <param name="typeId">Id типа сущности</param>
        /// <param name="size">Сумма</param>
        /// <param name="date">Дата</param>
        /// <param name="comment">Коментарии</param>
        public Essence(int id, int typeId, int size,int date,string comment)
        {
            this.id = id;
            this.typeId = typeId;
            this.sum = size;
            this.date = date;
            this.comment = comment;
        }

        public Essence(int typeId, int sum, int date, string comment)
        {
            
            this.typeId = typeId;
            this.sum = sum;
            this.date = date;
            this.comment = comment;
        }
    }
}
